<template>
	<view class="promote_code-box">
		<view class="img-box">
			<image :src="imgUrl" mode="widthFix"></image>
		</view>
		<view class="tip-box">
			长按识别图中二维码
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgUrl: ''
			}
		},
		onShow() {
			this.getData()
		},
		methods:{
			getData(){
				this.$api.fenxiao.getMyPromoteCode().then(res => {
					this.imgUrl = res
				}).catch(err => {

					this.$u.toast(err.message)
				})
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f5f5f5;
	}
	.img-box{
		text-align: center;
	}
	.tip-box{
		text-align: center;
		color: #999;
		font-weight: 600;
		margin-top: 20rpx;
	}
</style>
